package com.wl.api.model.system;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * 
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "security_channel_area_service_partner")
@Builder
public class SecurityChannelAreaServicePartner implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/** 区域取件服务定义 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/** 外键 */
	@TableField(value = "service_id")
	private Integer serviceId;

	/** 合作商ID */
	@TableField(value = "partner_id")
	private Integer partnerId;

	/** 服务名称 */
	private String name;

	/** 服务描述 */
	private String desc;

	/** 服务logo */
	@TableField(value = "logo_service")
	private String logoService;

	/** 费用闭区间 */
	@TableField(value = "amount_bt")
	private BigDecimal amountBt;

	/** 费用闭区间 */
	@TableField(value = "amount_ed")
	private BigDecimal amountEd;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;
	
	
	/** 0:未发布, 1:已发布*/
	private Integer status;

	@TableField(value = "is_deleted")
	private Integer isDeleted;
	
	public SecurityChannelAreaServicePartner buildBtAmt(BigDecimal amountBt, BigDecimal amountEd) {
		this.amountBt = amountBt;
		this.amountEd = amountEd;
		return this;
	}
}
